// common/components/workOrderStateWrapper/workOrderStateWrapper.js
Component({
  externalClasses: ['hyy-class'],

  /**
   * 组件的属性列表
   */
  properties: {
    state: {
      type: String,
      value: ""
    }
  },
  observers: {
    state: function (val) {
      this.setData({
        info: this.data._state[val]
      })
    }
  },
  /**
   * 组件的初始数据
   */
  data: {
    info: {},
    _state: {
      "1": {
        backgorundColor: '#D54941',
        text: '紧急'
      },
      "2": {
        backgorundColor: '#E37318',
        text: '较急'
      },
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})